How to execute a "name.desktop" file? [duplicate]
Posted
by
Pubudug
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Pubudug
Published on 2014-06-09T06:39:01Z
Indexed on
2014/06/10
9:41 UTC
Read the original article
Hit count: 133
command-line
|sharing
This question already has an answer here:
- Running a .desktop file in the terminal 10 answers
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Link
Name=ShareFolder
Icon=/usr/share/icons/DPL/NetworkShare.png
Name[en_US]=ShareFolder
URL=smb://servername/sharefolder
This is my .desktop
file which has a URL. How do I execute this desktop shortcut in the terminal? If i double click it works perfectly, but I need to execute this in terminal.
I tried Running a .desktop file in the terminal. That didn't work for me either but it does if its an "application" shortcut. I'm trying here to execute "link" .desktop
file, where you define in the type section (Type=Link
) and (URL=smb://servername/sharefolder
)
© Ask Ubuntu or respective owner